<#escape x as (x)!"">
<div class="page-dialog-content">
    <div class="panel-dialog">
		<form id="infoSaveForm" action="save" method="post" class="form-horizontal form-dialog-horizontal">
			<input type="hidden" name="id" value="${info.id}"/>
			<input type="hidden" name="pid" value="${info.pid}"/>
			<input type="hidden" name="type" value="${info.type}"/>
			<div class="panel-dialog-body">
				<#if parentInfo??>
				<div class="form-group">
					<label class="col-sm-3 control-label">上级权限：</label>
                    <div class="col-sm-6 control-value">
                    	${parentInfo.name}
                    </div>
                </div>
				</#if>
				<div class="form-group">
                    <label class="col-sm-3 control-label"><span class="required" aria-required="true">*</span>权限名称：</label>
                    <div class="col-sm-6">
                    	<input type="text" name="name" value="${info.name}" class="form-control required" maxlength="20" placeholder="请输入权限名称"/>
                    </div>
                </div>
                
                <#if info.type = 3>
                <div class="form-group">
                    <label class="col-sm-3 control-label"><span class="required" aria-required="true">*</span>访问链接：</label>
                    <div class="col-sm-6">
                    	<input type="text" name="url" value="${info.url}" class="form-control required" maxlength="300" placeholder="请输入访问链接"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label"><span class="required" aria-required="true">*</span>权限标志：</label>
                    <div class="col-sm-6">
                    	<input type="text" name="permission" value="${info.permission}" class="form-control" maxlength="100" placeholder="请输入权限标志"/>
                    </div>
                </div>
                </#if>
                
                <#if info.type = 4>
                <div class="form-group">
                    <label class="col-sm-3 control-label"><span class="required" aria-required="true">*</span>权限标志：</label>
                    <div class="col-sm-6">
                    	<input type="text" name="permission" value="${info.permission}" class="form-control" maxlength="100" placeholder="请输入权限标志"/>
                    </div>
                </div>
                </#if>
                
                <div class="form-group">
                    <label class="col-sm-3 control-label"><span class="required" aria-required="true">*</span>排序：</label>
                    <div class="col-sm-6">
                    	<input type="text" name="orderNum" value="${info.orderNum}" class="form-control required digits" maxlength="20" placeholder="请输入排序值"/>
                    </div>
                </div>
			</div>
			
			<div class="panel-footer panel-dialog-footer">
				<div class="text-right">
					<button id="dialog-btn-save" type="submit" class="btn btn-primary">保存</button>
					<button type="button" onclick="layer.closeAll();" class="btn btn-default">取消</button>
				</div>
			</div>
		</form>
	</div>
</div>
<script type="text/javascript">
$(function(){
	frm.submit("dialog", "infoSaveForm");
});
</script>
</#escape>
